<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>ShoppingCart.mxml</title>
<link rel="stylesheet" type="text/css" href="../../../../../SourceStyles.css"/>
</head>

<body><pre><span class="MXMLProcessing_Instruction">&lt;?xml version="1.0" encoding="utf-8"?&gt;</span>
<span class="MXMLComponent_Tag">&lt;views:ShoppingCartBase</span><span class="MXMLDefault_Text"> 
    xmlns:mx="</span><span class="MXMLString">http://www.adobe.com/2006/mxml</span><span class="MXMLDefault_Text">" 
    xmlns="</span><span class="MXMLString">*</span><span class="MXMLDefault_Text">" 
    xmlns:views="</span><span class="MXMLString">com.flowersinc.shop.views.*</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
    
    <span class="MXMLComponent_Tag">&lt;mx:Fade</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">fadeEffect</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
        
    <span class="MXMLComponent_Tag">&lt;views:states&gt;</span>
         <span class="MXMLComponent_Tag">&lt;mx:State</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">hideDetails</span><span class="MXMLDefault_Text">" name="</span><span class="MXMLString">HideDetails</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:RemoveChild</span><span class="MXMLDefault_Text"> target="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">customerDataGrid</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:RemoveChild</span><span class="MXMLDefault_Text"> target="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">hideDetailsButton</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:RemoveChild</span><span class="MXMLDefault_Text"> target="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">maskBox</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:SetProperty</span><span class="MXMLDefault_Text"> target="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">imageBox</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">" name="</span><span class="MXMLString">direction</span><span class="MXMLDefault_Text">" value="</span><span class="MXMLString">vertical</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:SetStyle</span><span class="MXMLDefault_Text"> target="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">priceBox</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">" name="</span><span class="MXMLString">paddingLeft</span><span class="MXMLDefault_Text">" value="</span><span class="MXMLString">23</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;/mx:State&gt;</span>
    <span class="MXMLComponent_Tag">&lt;/views:states&gt;</span>
    
    <span class="MXMLComponent_Tag">&lt;mx:Box</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">imageBox</span><span class="MXMLDefault_Text">" width="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">" direction="</span><span class="MXMLString">horizontal</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:HBox&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:Button</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">shoppingCartButton</span><span class="MXMLDefault_Text">" styleName="</span><span class="MXMLString">shoppingCartButton</span><span class="MXMLDefault_Text">" click ="</span><span class="ActionScriptDefault_Text">onCartButtonClick</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">" buttonMode="</span><span class="MXMLString">true</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:Label</span><span class="MXMLDefault_Text"> styleName="</span><span class="MXMLString">customerCartLabel</span><span class="MXMLDefault_Text">" text="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">flowersCount</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;/mx:HBox&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:Spacer</span><span class="MXMLDefault_Text"> width="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">" </span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:HBox</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">priceBox</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:Image</span><span class="MXMLDefault_Text"> source="</span><span class="MXMLString">../images/dollar-icon.png</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:Label</span><span class="MXMLDefault_Text"> styleName="</span><span class="MXMLString">customerCartLabel</span><span class="MXMLDefault_Text">" text="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">price</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;/mx:HBox&gt;</span>
    <span class="MXMLComponent_Tag">&lt;/mx:Box&gt;</span>
    <span class="MXMLComponent_Tag">&lt;mx:DataGrid</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">customerDataGrid</span><span class="MXMLDefault_Text">" styleName="</span><span class="MXMLString">customerDataGrid</span><span class="MXMLDefault_Text">" dataProvider="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">orders</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"  
                 dragEnter="</span><span class="ActionScriptDefault_Text">onDragEnter</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">event</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">" dragDrop="</span><span class="ActionScriptDefault_Text">onDragDrop</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">event</span><span class="ActionScriptBracket/Brace">)</span><span class="MXMLDefault_Text">" width="</span><span class="MXMLString">280</span><span class="MXMLDefault_Text">" rowHeight="</span><span class="MXMLString">32</span><span class="MXMLDefault_Text">"
                 mask="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">maskBox</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">" top="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">imageBox</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">height</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">" textIndent="</span><span class="MXMLString">2</span><span class="MXMLDefault_Text">" showEffect="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">fadeEffect</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">" hideEffect="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">fadeEffect</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:columns&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:DataGridColumn</span><span class="MXMLDefault_Text"> headerText="</span><span class="MXMLString">#</span><span class="MXMLDefault_Text">"  sortable="</span><span class="MXMLString">false</span><span class="MXMLDefault_Text">" dataField="</span><span class="MXMLString">number</span><span class="MXMLDefault_Text">" width="</span><span class="MXMLString">30</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:DataGridColumn</span><span class="MXMLDefault_Text"> headerText="</span><span class="MXMLString">Name</span><span class="MXMLDefault_Text">" dataField="</span><span class="MXMLString">name</span><span class="MXMLDefault_Text">" width="</span><span class="MXMLString">90</span><span class="MXMLDefault_Text">" fontWeight="</span><span class="MXMLString">bold</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:DataGridColumn</span><span class="MXMLDefault_Text"> headerText="</span><span class="MXMLString">Amount</span><span class="MXMLDefault_Text">" dataField="</span><span class="MXMLString">amount</span><span class="MXMLDefault_Text">" textAlign="</span><span class="MXMLString">center</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:DataGridColumn</span><span class="MXMLDefault_Text"> headerText="</span><span class="MXMLString">Delete</span><span class="MXMLDefault_Text">" sortable="</span><span class="MXMLString">false</span><span class="MXMLDefault_Text">" width="</span><span class="MXMLString">70</span><span class="MXMLDefault_Text">"
                               itemRenderer="</span><span class="MXMLString">com.flowersinc.shop.renderers.DeleteButtonRenderer</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;/mx:columns&gt;</span>
    <span class="MXMLComponent_Tag">&lt;/mx:DataGrid&gt;</span>
    <span class="MXMLComponent_Tag">&lt;mx:Box</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">maskBox</span><span class="MXMLDefault_Text">" styleName="</span><span class="MXMLString">maskBox</span><span class="MXMLDefault_Text">" width="</span><span class="MXMLString">280</span><span class="MXMLDefault_Text">" height="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">customerDataGrid</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">height</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">" top="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">imageBox</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">height</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
    <span class="MXMLComponent_Tag">&lt;mx:Button</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">hideDetailsButton</span><span class="MXMLDefault_Text">" styleName="</span><span class="MXMLString">hideDetailsButton</span><span class="MXMLDefault_Text">" label="</span><span class="MXMLString">Hide details</span><span class="MXMLDefault_Text">" click="</span><span class="ActionScriptDefault_Text">currentState</span><span class="ActionScriptOperator">=</span><span class="ActionScriptString">'HideDetails'</span><span class="MXMLDefault_Text">" 
               buttonMode="</span><span class="MXMLString">true</span><span class="MXMLDefault_Text">" top="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">customerDataGrid</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">height</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">imageBox</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">height</span> <span class="ActionScriptOperator">+</span> 10<span class="MXMLString">}</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
<span class="MXMLComponent_Tag">&lt;/views:ShoppingCartBase&gt;</span></pre></body>
</html>
